package cate.game.pvp.eliterace.handler;

import cate.game.table.TableManager;

import java.util.Objects;
import java.util.function.Supplier;

public class BothEliteRaceExcelQueryOperation implements EliteRaceExcelQueryOperation {

    private final TableManager tableManager;

    public BothEliteRaceExcelQueryOperation(Supplier<TableManager> tableManagerSupplier) {
        this.tableManager = Objects.requireNonNull(tableManagerSupplier.get());
    }

    @Override
    public String getRankReward(int rank) {
        return tableManager.eliteRace.reward.getReward(rank);
    }

    @Override
    public long getPoints(int round) {
        return tableManager.eliteRace.round.getPoints(round);
    }
}
